package com.hjc.mapper;

import com.hjc.entity.Purchase;
import com.hjc.page.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseMapper {
//    添加采购单
    public int insertPurchase(Purchase purchase);

//    查询采购单总条数
    public int selectPurchaseCount(Purchase purchase);

//    分页查询采购单
    public List<Purchase> selectPurchaseByPage(@Param("purchase") Purchase purchase, @Param("page") Page page);

//    删除订单
    public int deletePurchaseById(Integer buyId);

//    修改订单
    public int updatePurchaseById(Purchase purchase);


}
